From: Colin Walters Date: Wed, 17 Oct 2018 16:10:40 +0000 (+0000) Subject: sysroot: Add error prefixing to deployment parsing X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~19^2~10 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1db0db3d7aa98e3db98ba93f7fc2e17305f95007;p=ostree.git sysroot: Add error prefixing to deployment parsing I think this is where the bare `readlinkat` came from in https://github.com/ostreedev/ostree/issues/1459 `Error setting up sysroot: readlinkat: No such file or directory` Closes: #1757 Approved by: jlebon --- diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index 8a916289..8485edec 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -612,6 +612,10 @@ parse_deployment (OstreeSysroot *self, error)) return FALSE; + g_autofree char *errprefix = + g_strdup_printf ("Parsing deployment %i in stateroot '%s'", treebootserial, osname); + GLNX_AUTO_PREFIX_ERROR(errprefix, error); + const char *relative_boot_link = boot_link; if (*relative_boot_link == '/') relative_boot_link++;